/**
 * Player 
 * Define Player objects
 **/
var Player = function() {

	this.init = function(p) {
		log('*** INIT PLAYER ***');
	}

	this.clear = function() {
	}

	this.update = function() {
		this.input();

		// if (distance(this.target,this.position) != 0 && interval(this.lastMove, 1))
		// 	this.move();
	}

	this.input = function() {
		input.listen();

		if(input.mouse.click === true) {
			// var newTarget = game.mMap.getPosition({x:input.mouse.x,y:input.mouse.y});
			// if (game.mMap.isWalkable(newTarget))
			// 	this.setTarget(newTarget);

			var position = game.mMap.getPosition({x:input.mouse.x,y:input.mouse.y});
			var cell = game.mMap.getCell(position);

			cell.onClick();
		}
	}

	this.render = function() {
	}

	this.renderTarget = function() {
	}
};